#
# HoI - Yugoslav Events
#
#		written by Quetzalcoatl
#

### Orokbaratsag YUG 2.
###################################
event = {
	id = 90123
	random = no
	country = YUG

	trigger = {
		flag = Barat2HUN
	}

	style = 0
	name = "EVT_90123_NAME"
	desc = "EVT_90123_DESC"
	picture = "boudewijn"

	date = { day = 2 month = january year = 1936 }
	offset = 2
	deathdate = { day = 3 month = may year = 1939 }

	action_a = {
		name = "ACTIONNAME90123A"
		ai_chance = 85
		command = { type = relation which = HUN value = 25 }
		command = { type = setflag which = Barat2YUG}
	}
	action_b = {
		name = "ACTIONNAME90123B"
		ai_chance = 15
		command = { type = relation which = HUN value = -10 }
		command = { type = clrflag which = Barat2HUN }
	}
}

### Bled egyezmeny JUG
###################################
event = {
	id = 90130
	random = no
	country = YUG

	trigger = {
		NOT = {war = { country = HUN country = YUG  } }
		exists = HUN
		exists = YUG
		exists = ROM
		exists = CZE
	}

	style = 0
	name = "EVT_90130_NAME"
	desc = "EVT_90130_DESC"
	picture = "boudewijn"

	date = { day = 21 month = august year = 1938 }
	offset = 1
	deathdate = { day = 22 month = august year = 1938 }

	action_a = {
		name = "ACTIONNAME90130A"
		ai_chance = 97
		command = { type = relation which = HUN value = 5 }
		command = { type = setflag which = BledJug}
	}
	action_b = {
		name = "ACTIONNAME90130B"
		ai_chance = 3
		command = { type = relation which = HUN value = -20 }
	}
}

#########################################################################
#  Kisantant felbomlsa
#########################################################################
event = {
	id = 91184
	random = no
	country = YUG

	trigger = {
		OR = {
			AND = {
				flag=BledJug
				flag=BledRom
				flag=BledCze
			}
			event = 2006
			NOT = { exists = CZE }
			NOT = { exists = ROM }
			NOT = { exists = HUN }
		}
		NOT = {war = { country = HUN country = YUG  } }
	}

	style = 0
	name = "EVT_91184_NAME"
	desc = "EVT_91184_DESC"
	picture = "foreign_policy"

	date = { day = 10 month = january year = 1937 }
	offset = 10
	deathdate = { day = 16 month = march year = 1939 }

	action_a = {
		name = "ACTIONNAME91184A"
		ai_chance = 100
		command = { type = relation which = ROM value = -5 }
		#command = { type = relation which = YUG value = -5 }
		command = { type = relation which = CZE value = -5 }
		command = { type = leave_alliance }
	}
}
